package com.icetech.eom.service.sys;

import com.baomidou.mybatisplus.extension.service.IService;
import com.icetech.eom.domain.sys.Role;
import com.icetech.eom.domain.sys.UserRole;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangzw
 * @since 2018-12-10
 */
public interface IUserRoleService extends IService<UserRole> {

    /**
     * 获取角色列表
     * @param userId
     * @return
     */
    List<Role> findByUserId(Long userId);

    /**
     * 获取部门Id
     * @param userId
     * @return
     */
    List<Long> findDepIdsByUserId(Long userId);


    List<UserRole> findByRoleId(Long roleId);

    void deleteByUserId(Long id);
}
